//任务列表接口
import request from "@/utils/request";

export function taskList(name) {
  return request({
    url: '/task/list',
    method: 'get',
    params: {name,}
  })
}

export function createOrEditTask(data) {
  return request({
    url: '/task/saveOrUpdate',
    method: 'post',
    data
  })
}


export function deleteTask(data) {
  return request({
    url: '/task/remove',
    method: 'post',
    data
  })
}

export function issueTask(data) {
  return request({
    url: '/task/issue',
    method: 'post',
    data
  })
}
